{% extends "dynamic/base.html" %}

{% load i18n adminmedia %}

{% block stylesheet %}{% admin_media_prefix %}css/dashboard.css{% endblock %}
{% block bodyclass %}dashboard{% endblock %}
{% block coltype %}colMS{% endblock %}

{% block content %}
<div id="content-main">

{% comment %} SETUPS {% endcomment %}
<div class="module">
    <table width="100%">
        <caption>{% trans "Available setups" %}</caption>
        {% for setup in setups_list %}
        <tr>
            <td {% if setup.enabled %}style="font-weight: bold"{% endif %}>
                <a href="/admin/dynamic/setup/{{ setup.id }}/">{{ setup|default:setup.id }}</a>
            </td>
            <td>{% if setup.maintenance_state %}( {% trans "Maintenance State" %} ){% else %}&nbsp;{% endif %}</td>
            <td width="1">
                <a href="/admin/dynamic/setup/{{ setup.id }}/delete/" title="Delete"><img src="{% admin_media_prefix %}img/admin/icon_deletelink.gif" alt="Delete"/></a>
            </td>
        </tr>
        {% endfor %}
    </table>

    <div style="padding: 5px; text-align: right">
        <a href="setup/add/">{% trans "Add a new Setup" %}</a>
    </div>
</div>

{% comment %} INSTALLED APPLICATIONS {% endcomment %}
<div class="module">
    <table width="100%">
        <caption>{% trans "Installed Applications" %}</caption>
        {% for app in applications_list %}
        <tr>
            <td>{{ app }}</td>
            <td width="1">
                <a href="#" title="Disable"><img src="{% admin_media_prefix %}img/admin/icon_deletelink.gif" alt="Disable"/></a>
            </td>
        </tr>
        {% endfor %}
    </table>

    {% if settings.DYNAMIC_APPS_ROOT %}
    <div style="padding: 5px; text-align: right">
        <a href="apps/upload/">{% trans "Upload an Application" %}</a>
    </div>
    {% endif %}
</div>

</div>

<div id="content-related">

{% comment %} TOOLS {% endcomment %}
<div class="module">
    <h2>{% trans "Tools" %}</h2>

    <ul class="actionlist">
        <li><a href="sql_monitor/">{% trans "SQL Monitor" %}</a></li>
        <li><a href="sql_shell/">{% trans "SQL Shell" %}</a></li>
        <li><a href="shell/">{% trans "Django Shell" %}</a></li>
        <li><a href="file_manager/">{% trans "File Manager" %}</a></li>
    </ul>
</div>

</div>
{% endblock content %}

